//
//  VideoModel+extension.h
//  VideoExam
//
//  Created by apple on 2020/5/22.
//

#import "VideoModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface VideoModel (extension)

/// 上传视频封面
/// @param successBlock 成功
/// @param errorBlock 失败
-(void)upload_video_coverImageSuccess:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

/// 设置录制次数
/// @param songId 曲目id
/// @param successBlock successBlock
/// @param errorBlock errorBlock
- (void)add_record_number_songId:(NSString *)songId Success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

#pragma mark 获取根据本地视频path获取封面
///获取根据本地视频path获取封面
/// @param path 本地视频沙盒地址 path
+ (UIImage *)get_Video_Image_video_path:(NSString *)path;

#pragma mark  批量获取视频封面
/// 批量获取视频封面
/// @param dataArray dataArray
+(void)get_video_coverImages:(NSArray<VideoModel *> *)dataArray;


#pragma mark  视频是否全部上传成功
///视频是否全部上传成功
+(BOOL)is_all_uplod_successful_array:(NSArray <VideoModel *>*)array;


#pragma mark 是否存在本地视频
/// 是否存在本地视频
/// @param orderId 订单id
+ (BOOL)show_local_video_orderId:(NSString *)orderId;

#pragma mark 模拟考试 默认状态
//模拟考试 默认状态
- (void)default_state;


/// 获取视频列表 视频总大小
/// @param list 视频列表数组
+ (NSString *)get_videoList_allSize_list:(NSMutableArray *)list;

@end

NS_ASSUME_NONNULL_END
